<div class="basic_form">
    <div class="title">Administration</div>
    <p>
    &nbsp;Below is the list of all 1 projects for this installation of XIRA.<br/>
    </p>
    <p>
        &nbsp;<img src="/images/bullet_creme.gif"/>
        <b><%= link_to 'Add Project', :action => 'new', :class=>'blue_text'%></b>
    </p>
</div>

<table class="grid">
    <tr>
        <% for column in ['Name','Key','URL','Project Lead','Default Assignee','Operations'] %>
        <th><%= column %></th>
        <% end %>
    </tr>

    <% for project in @projects %>
    <tr>
        <% for column in ['name', 'key', 'url'] %>
        <td><%=h project.send(column) %></td>
        <% end %>
        <td></td>
        <td></td>
        <td><%= link_to 'View', :action => 'show', :id => project %>
            <%= link_to 'Edit', :action => 'edit', :id => project %>
            <%= link_to 'Delete', { :action => 'destroy', :id => project }, :confirm => 'Are you sure?', :method =>
            :post %>
        </td>
    </tr>
    <% end %>
</table>

<%= link_to 'Previous page', { :page => @project_pages.current.previous } if @project_pages.current.previous %>
<%= link_to 'Next page', { :page => @project_pages.current.next } if @project_pages.current.next %>

<br/>
